Pushing my drupal site.

Hi,
Can anyone please help me with a drupal 10 site I completed.
Context: A few days ago I started a course to make a full site for Drupal 10 with how to create theme. In order to do this I did the following:
I created a new drupal 10 site in pantheon then I used lando to start working from local. I used the command line ‘lando start’ and that got me the URLS to work from local. I never turned off the laptop for days and I finished the website from local but when it was time to push everything. I got errors. Since yesterday(Monday morning) I have been trying different things. At first I thought it was composer.lock file so I removed it and when I pushed it was giving me errors again. Then I tried to import the zip file of my entire project folder and the db.sql file but did not work. Then I tried to delete the site in pantheon and created a new one then but it did not work either. Please help me.
The site is fully functional in local. A friend of mine attempted to put the site onto his host that is NOT pantheon and it worked. We don’t know why. My site needs to be in Pantheon. Please help me I really do not know what to do.
Any help please I’d appreciate it so much

Hi Francisco. Can you provide a little more detail regarding the original error you encountered? You say you first got an error when it was time to push everything. I take this to mean that when you tried to git push your code you received some sort of error. What was the error message? Or were you trying some other means of pushing your code to Pantheon?

Hi Aaron,
Thank you for reaching out! Yes I did try that as well. A friend of mine put it on his host but mine needs to be on Pantheon because I was planning on using it for my website portfolio when applying for jobs.

At first it was composer so I removed composer.lock file but the push was an error. Then I tried :uploading the sql and the files but it didn’t work either. I also deleted the whole site in Pantheon and started over and still it’s not working. Please. I have been at this since Monday. At first I wanted to send it to my interviewer because the company uses pantheon as well but 3 days after, at this point I just want to have it to work and learn how to avoid this error from happening again.

Can you share the specific error message that composer returns when you try to push code to Pantheon? There may be a clue there to help figure out the problem.

thank you so much! I already solved this. I would seriously consider to not encourage too much Lando. I had better luck with DDev. I spent 3 days using Lando and Git but it took me 2 hours to solve it with DDev.l

1 Like

I would agree that DDEV is the better option. Glad you got it sorted.

Originally, when I created the Drupal 10 site in Pantheon, SSH Key and then I used Lando. Created a new directory and used the command lines to connect my site to the local env. ‘Lando init’, ‘lando start’. And yes, I had everything up to date. The Mac is new so I had to download and install everything from the ground up : brew, composer, php, node (for some other projects), SQL for the database, docker, lando and everything else. At first, I was able to use the lando urls to work from local and I didn’t turn off the laptop for days so everything kept running smoothly. I worked on CMS and created new files for the drupal site. When it was time to commit and push I received errors. I tried everything. Lando push, then git commands, but nothing work. From Monday morning until Wednesday evening, nothing worked. I reached out to a friend more experienced than me and he couldn’t get lando to work, we used ChatGPT as well and trained the chat and didn’t work either, we went through the documentation as well. It kept giving us the usual messages in red that nothing was pushed. This was not the first time lando has not worked, I have used it before and have had similar experiences. He suggested to me to use DDEV. Within 2 hours we got everything to work with DDev. My intentions are not to diminish Lando, but honestly, I am sure everyone has bad experiences with it.

Thanks for jumping in here to help out @aaron! :star2: